package Test1;//代表A这个类在Test1这个包中
class Person{
    public String name;
    public int age;
    //静态代码块
    static {
        System.out.println("3");
    }
    //实例代码块
    {
        System.out.println("2");
    }
    //构造方法
    Person(){
        System.out.println("1");
    }
}
public class A {
    public static void main(String[] args) {
        Person person1 = new Person();
        Person person2 = new Person();
    }
}
